package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.ApprovalSteps;
import com.project.vo.ApprovalStepListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ApprovalStepsMapper extends BaseMapper<ApprovalSteps> {
    @Select("select * from approval_steps where approval_id=#{id}")
    List<ApprovalStepListVO> getByApprovalId(Integer id);

    @Select("select * from approval_steps where approval_id=#{approvalId}")
    List<ApprovalSteps> selectApproovalStepsByApprovalId(Integer approvalId);

    @Select("select * from approval_steps where step_id=#{id}")
    ApprovalSteps getByStepId(Integer id);
}